import http from "../utility/request.js";

//用户关注
export const userFollowing = (data) => http.post('/cmsprovider/v1/user/relation/followings', {
	data
});

//用户修改资料显示
export const userAccount = (data) => http.get('/cmsprovider/v1/user/account', {
	data
})

//用户修改资料
export const userUpdate = (data) => http.post('/cmsprovider/v1/user/account/update', {
	data
})

//用户信息
export const userInfo = (data) => http.get('/cmsprovider/v1/user/info', {
	data
})

// 用户拥有区块链地址
export const blockchainAddress = (data) => http.get('cmsprovider/v1/user/blockchain/address',{data})

//系统消息
export const systemMsg = (data) => http.get('/cmsprovider/v1/message/system/msgList',{data})
//实名认证元石增加
export const taskRealName = (data) => http.get('/cmsprovider/v1/smalltown/task/realName', {data});

//实名认证
export const relNameConfirm = (data) => http.post('/cmsprovider/v1/user/check/realName',{data})

//用户历史动态
export const userHistory = (data) => http.post('/cmsprovider/v1/user/dynamic/history',{data})

//用户关系检测
export const userRelation = (data) => http.get('/cmsprovider/v1/user/relation/check',{data})

//用户关系修改->关注
export const userChangeRelation = (data) => http.post('/cmsprovider/v1/user/relation/modify',{data})

//用户关系数据统计 关注量 粉丝量 点赞量
export const userStatistical = (data) => http.get('/cmsprovider/v1/user/relation/stat',{data})

//发送短信
export const sendMsg = (data) => http.post('/cmsprovider/v1/user/relation/stat',{data})

//更改手机号
export const PhoneChange = (data) => http.post('/cmsprovider/v1/user/account/updateMobile',{data})

//获得验证码
export const getMsgCode = (data) => http.post('/cmsprovider/v2/send/msg',{data})

//注销用户
export const deleteUser = (data) => http.post('/cmsprovider/v1/user/cancel/account',{data})

//上传封面
export const updataUserBg = (data) => http.post('/cmsprovider/v1/user/account/updateBackgroundImg',{data})

//是否展示藏品
export const collectionStatus = (data) => http.post('/cmsprovider/v1/user/criticism/update',{data})

//是否展示弹窗
export const isShowPopup = (data) => http.get('/cmsprovider/v1/notice/message',{data})

//重新认证
export const attestedAgin = (data) => http.post('/cmsprovider/v1/user/realname/update',{data})

//是否重新需要重新认证
export const attestError = (data) => http.get('/cmsprovider/v1/user/realname/error', {data})


